#  /bin/bash
goOutDir=../model/opaquex/
fileName=opaquex
protoc -I  ./ \
            --go_out $goOutDir --go_opt paths=source_relative \
            --go_opt=default_api_level=API_OPAQUE \
            --go-grpc_out $goOutDir --go-grpc_opt paths=source_relative \
           $fileName.proto
protoc-go-inject-tag -input $goOutDir/"*.pb.go"

#open2opaque setapi -api HYBRID $(find . -name "opaquex.proto")
#open2opaque setapi -api OPAQUE $(find . -name "*.proto")